package com.ytjj.qmyx.mall.model;

import java.io.Serializable;
import java.util.Date;

public class Version implements Serializable {
    /**
     * 版本表
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 类型 ios, android
     *
     * @mbg.generated
     */
    private String type;

    /**
     * 版本
     *
     * @mbg.generated
     */
    private String version;

    /**
     * 版本号
     *
     * @mbg.generated
     */
    private String versionNo;

    /**
     * 下载地址
     *
     * @mbg.generated
     */
    private String url;

    /**
     * 包类型 hot热更新包 new 全量包
     *
     * @mbg.generated
     */
    private String packageType;

    /**
     * 强制更新状态 0->不强制更新 1->强制更新
     *
     * @mbg.generated
     */
    private Byte forceUpdate;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * 版本说明
     */
    private String versionInfo;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getVersionNo() {
        return versionNo;
    }

    public void setVersionNo(String versionNo) {
        this.versionNo = versionNo;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPackageType() {
        return packageType;
    }

    public void setPackageType(String packageType) {
        this.packageType = packageType;
    }

    public Byte getForceUpdate() {
        return forceUpdate;
    }

    public void setForceUpdate(Byte forceUpdate) {
        this.forceUpdate = forceUpdate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getVersionInfo() {
        return versionInfo;
    }

    public void setVersionInfo(String versionInfo) {
        this.versionInfo = versionInfo;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", version=").append(version);
        sb.append(", versionNo=").append(versionNo);
        sb.append(", url=").append(url);
        sb.append(", packageType=").append(packageType);
        sb.append(", forceUpdate=").append(forceUpdate);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", versionInfo=").append(versionInfo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}